import { defineStore } from 'pinia'
import { reactive,ref } from 'vue'
// 使用vueuse 将数据存储本地
import { useStorage } from '@vueuse/core'

export const useThemeStore = defineStore('tehme', () => {
 let theme = ref(useStorage('THEME',null))
  
  function setTheme(e){
	  console.log('----------',e);
	   theme.value = e
  }
  return { theme,setTheme}
})